package com.cy.Test;

import com.cy.pojo.Users;
import com.cy.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;


@SpringBootTest
public class userTest {
    @Autowired
    private UserService userService;

    @Test
    void userTests(){
        Users user = userService.QueryUser("user");
        System.out.println(user);

        List<String> list = userService.qeruyUserPermissions(1);
        System.out.println(String.valueOf(list));
        System.out.println(list.toArray(new String[]{}));
    }
}
